def discernTelphone(tel : String) = {
	val zgydRegex1 = "\\b134[0-8]\\d{7}\\b".r
	val zgydRegex2 = "\\b13[5-9]\\d{8}\\b".r
	val zgydRegex3 = "\\b15[0-2,7-9]\\d{8}\\b".r
	val zgydRegex4 = "\\b18[2-4,7-8]\\d{8}\\b".r
	val zgydRegex5 = "\\b147\\d{8}\\b".r
	val zgydRegex6 = "\\b1705\\d{8}\\b".r
	val zgydRegex7 = "\\b178\\d{8}\\b".r
	val zgltRegex1 = "\\b13[0-2]\\d{8}\\b".r
	val zgltRegex2 = "\\b15[5-6]\\d{8}\\b".r
	val zgltRegex3 = "\\b18[5-6]\\d{8}\\b".r
	val zgltRegex4 = "\\b176\\d{8}\\b".r
	val zgltRegex5 = "\\b145\\d{8}\\b".r
	val zgltRegex6 = "\\b1709\\d{7}\\b".r
	val zgdxRegex1 = "\\b133\\d{8}\\b".r
	val zgdxRegex2 = "\\b1349\\d{7}\\b".r
	val zgdxRegex3 = "\\b153\\d{8}\\b".r
	val zgdxRegex4 = "\\b18[0-1,9]\\d{8}\\b".r
	val zgdxRegex5 = "\\b177\\d{8}\\b".r
	val zgdxRegex6 = "\\b1700\\d{7}\\b".r
	tel match {
	case _ if tel.length != 11 => println(s"the $tel length is 11 please input again")
	case _ if zgydRegex1.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex2.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex3.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex4.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex5.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex6.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgydRegex7.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoyidong")
	case _ if zgltRegex1.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgltRegex2.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgltRegex3.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgltRegex4.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgltRegex5.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgltRegex6.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguoliantong")
	case _ if zgdxRegex1.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ if zgdxRegex2.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ if zgdxRegex3.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ if zgdxRegex4.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ if zgdxRegex5.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ if zgdxRegex6.findAllMatchIn(tel).nonEmpty => println(s"the $tel is zhongguodianxian")
	case _ => println(s"the $tel is not valild")
	}
}
/*
这段代码的作用：识别一个手机号码是中国移动/中国联通/中国电信
*/